<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no"/>
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="renderer" content="webkit">
    <meta name="format-detection" content="telephone=no">
    <meta name="csrf-param" content="_homeCSRF">
    <meta name="csrf-token" content="ZkhraDhIbllXZVM8ZxAbLVMmKiIMJQwTASNdCUt/KioiejgiAQEGaQ==">
    <title></title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link href="../src/img/favicon.ico" rel="shortcut icon">
    <link href="/images/favicon.ico" rel="bookmark">
    <link href="../src/css/jquery.bxslider.css" rel="stylesheet">
    <link href="../src/iconfonts/iconfont.css" rel="stylesheet">
    <link href="../src/css/bootstrap.css" rel="stylesheet">
    <link href="../src/css/dookayui.css" rel="stylesheet">
    <link href="../src/css/dx.css" rel="stylesheet">
    <link href="../src/css/dy.css" rel="stylesheet">
    <!--[if lte IE9]>
    <script src="../src/js/html5shiv.js"></script>
    <![endif]-->
    <!--[if lte IE9]>
    <script src="../src/js/respond.min.js"></script>
    <![endif]-->
</head>
<body>

<div class="header"></div>
<div id="pbody" class="">
    <div class="dx-content">
        <div class="dynamic-details-bg-color">
            <div class="container dynamic-details">
                <div class="title">
                    <h2 class="font-20 english-title"></h2>
                    <p class="font-20 article-title"></p>
                </div>
                <div class="title-share clearfix">
                </div>
                <div class="dynamic-details-content content-center"></div>
            </div>
        </div>
    </div>
</div>
<footer class="footer"></footer>
<script src="../src/js/dookayui.min.js"></script>
<script src="../src/js/common.js"></script>

<script>

    function serilizeURL(url) {
        var rs = url.split("?")[1];
        var arr = rs.split("&");
        var json = {};
        for (var i = 0; i < arr.length; i++) {
            if (arr[i].indexOf("=") != -1) {
                json[arr[i].split("=")[0]] = arr[i].split("=")[1];
            }
            else {
                json[arr[i]] = "undefined";
            }
        }
        return json;
    }

    var url = location.href;
    var secondMenuId = serilizeURL(url).secondMenuId; //二级菜单栏id

    function queryArticleByColumnId(id) {
        $.ajax({
            url: "http://192.168.100.181:8080/api/article/queryArticleByColumn?id=" + id,
            success: function (data) {
                articleLists = data.data;
                var articleListsLength = articleLists.length;
                $.ajax({
                    url: "http://192.168.100.181:8080/api/article/queryArticleDetail?id=" + articleLists[articleListsLength - 1].id,
                    success: function (data) {
                        articleContent = data.data;
                        $('.dynamic-details-content').append(articleContent.content);
                        $('.title.pull-left h3').append(articleContent.title);
                        $('.title.pull-left .date').append(articleContent.modifyDate);
                    }
                })
            }
        })
    }

    $(function () {
        commonApp.init();
        $(".header").load("http://192.168.100.181:8080/huoge-edu/public-file/business-header.html", function () {
            $(".px-mobile .dy-nav .bread").on("click", function () {
                $(".px-mobile .main-nav").slideToggle("slow");
            });
        });
    })
    $(document).ready(function () {
        queryArticleByColumnId(secondMenuId)
        $(".footer").load("http://192.168.100.181:8080/huoge-edu/public-file/footer.html");
    });



</script>
</body>
</html>
